﻿@page "/Account/My/Address"
@inherits YiMeiJiaService.Assembly.BaseComponent
@using Newtonsoft.Json;
@using YiMeiJiaLibModel.Config
@using YiMeiJiaApp.Pages.Components
@using YiMeiJiaLibModel.Business

<Headers MyPartialText="地址列表"></Headers>
<div class="cm-app-container">


    <div class="weui-panel weui-panel_access">
        <div class="weui-panel__hd">地址列表</div>
        <div class="weui-panel__bd">
            @if (_address != null && _address.Any())
            {
                foreach (var item in _address)
                {
                    <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd">
                            @item.name   @(item.isDefault? " - 默认":"")
                        </div>
                        <div class="weui-media-box__bd">
                            <h4 class="weui-media-box__title">@item.mobile</h4>
                            <p class="weui-media-box__desc">@item.address</p>
                        </div>
                    </a>
                }
            }


        </div>
        @*         <div class="weui-panel__ft">
        <a href="javascript:void(0);" class="weui-cell weui-cell_access weui-cell_link">
        <div class="weui-cell__bd">查看更多</div>
        <span class="weui-cell__ft"></span>
        </a>
        </div> *@
    </div>

</div>

<div class="flex-container-btn cm-txt-center">
    <a href="/Account/My/Address-Add" class="weui-btn   weui-btn_warn">添加地址</a>
</div>
<script>
    $(function () {
        $("#shop-tabbar").slideToggle(2000);
    })
</script>
@code {

}
